package ar.edu.utn.frba.dds.tp.ui;

import org.uqbar.arena.layout.HorizontalLayout;
import org.uqbar.arena.layout.VerticalLayout;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.windows.Window;
import org.uqbar.arena.windows.WindowOwner;


@SuppressWarnings("serial")
public abstract class ResultadosAccionesWindow extends Window<BuscarWindow> {

	public ResultadosAccionesWindow(WindowOwner owner, BuscarWindow model) {
		super(owner, model);
	
	}

	@Override
	public void createContents(Panel mainPanel) {
		mainPanel.setLayout(new VerticalLayout());
		this.setTitle("Aterrizar.Com");
		
		this.buildAviso(mainPanel);
		this.createActionsPanel(mainPanel);
		
	}
	
	private void createActionsPanel(Panel mainPanel) {
		Panel actionsPanel = new Panel(mainPanel);
		actionsPanel.setLayout(new HorizontalLayout());
		this.addActions(actionsPanel);
		
	}
	

	
	// METODOS QUE DEBEN IMPLEMENTAR LAS SUBCLASES
	
	protected abstract void buildAviso(Panel mainPanel);
	protected abstract void addActions(Panel actionsPanel);

	

}
